<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/admin/js/jquery.js"></script>
    <script type="text/javascript" src="/js/layer/layer.js"></script>
    <script>
        $(function(){
            $(".add").click(function(){
                layer.open({
                    type:2
                    ,title: '<p>新增子账号</p>'
                    ,content:"/admin/addchildren.htm"
                    ,area: ['300px', '300px']
                    ,btnAlign: 'c'
                    ,btn: ['确定']
                    ,yes:  ['保存','取消']
                    ,yes: function(index, layero){
                        //按钮【按钮一】的回调
                        layero.find("form").submit();
                    }
                    ,btn2: function(index, layero){
                        //按钮【按钮二】的回调

                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                    ,cancel: function(){
                        //右上角关闭回调

                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                });
            })


//				$.ajax({
//					type:"post",
//					url:"",
//					async:true
//				});
        });
    </script>
</head>
<body>
<form action="" id="myform" method="post">
    <table  width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
    <tr>
        <td align="left" width="15%" bgcolor="d3eaef" height="30"><div align="center"><span>子账号名称</span></div></td>
        <td align="left" width="15%" height="30" bgcolor="d3eaef"><div align="center"><span>账号所有人名称</span></div></td>
        <td align="left" width="25%" height="30" bgcolor="d3eaef"><div align="center"><span>子账号添加时间（更改时间）</span></div></td>
        <td align="left" width="25%" height="30" bgcolor="d3eaef"><div align="center"><span>账号所有人联系方式</span></div></td>
        <td align="left" width="20%" height="30" bgcolor="d3eaef"><div align="center"><span>操作</span></div></td>
    </tr>
    <tr>
        <td height="30" bgcolor="#FFFFFF"><div align="center"><span></span></div></td>
        <td height="30" bgcolor="#FFFFFF"><div align="center"><span></span></div></td>
        <td height="30" bgcolor="#FFFFFF"><div align="center"><span></span></div></td>
        <td height="30" bgcolor="#FFFFFF"><div align="center"><span></span></div></td>
        <td height="30" bgcolor="#FFFFFF"><div align="center">
            <input type="button" value="新增" class="add"/>
            <input type="button" value="修改" class="upda"/>
            <input type="button" value="删除" class="dele"/>
        </div></td>
    </tr>
    </table>
</form>
</body>
</html>